<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>江苏智慧人社</title>

  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      background-color: #f8f8f8;
    }

    .img {
      width: 100%;
    }
  </style>
</head>

<body>
  <img style="opacity: 0;" class="img"
    src="" />

  <script>

    window.onload = () => {

      const u = navigator.userAgent;
      const isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1;
      const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);

      const imgDom = document.querySelector('.img');
      try {
        if (isiOS) {
          if (eval(window.webkit.messageHandlers.savePictureLocally)) {
            imgDom.style.opacity = 1;
          } else {
            location.href = "https://rs.jshrss.jiangsu.gov.cn/mobile/errorToApp";
          }
        }

        if (isAndroid) {
          if ("function" == typeof eval(window.jssb.savePictureLocally)) {
            imgDom.style.opacity = 1;
          } else {
            location.href = "https://rs.jshrss.jiangsu.gov.cn/mobile/errorToApp";
          }
        }
      } catch (error) {
        location.href = "https://rs.jshrss.jiangsu.gov.cn/mobile/errorToApp";
      }
    }
  </script>

</body>

</html>